package com.glsc.ngateway.common.api.flowable.dto.demand;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.stream.Collectors;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ArrangeTaskReq {

    String rqId;

    List<ArrangeInf> arrangeinfo;

    String commnet;

    public List<String> gtDevList() {
        if (arrangeinfo == null) return null;
        return arrangeinfo.stream().map(ArrangeInf::getDevUserId).collect(Collectors.toList());
    }

}
